﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL;
namespace BUS
{
    public class AccessoryBL
    {
        AccesoryDAL dal = new AccesoryDAL();

        #region[Accessory_SelectALL]
        public List<DTO.AccesoryDTO> Accessory_SelectALL()
        {
            return dal.Accessory_SelectALL();
        }
        #endregion

        #region[Accessory_SelectByName]
        public List<DTO.AccesoryDTO> Accessory_SelectByName(String name)
        {
            return dal.Accessory_SelectByName(name);
        }
        #endregion

        #region[Accessory_SelectByID]
        public DTO.AccesoryDTO Accessory_SelectByID(int id)
        {
            return dal.Accessory_SelectByID(id);
        }
        #endregion

        #region[Accessory_SelectByType]
        public List<DTO.AccesoryDTO> Accessory_SelectByType(string type)
        {
            return dal.Accessory_SelectByName(type);
        }
        #endregion

        #region [Accessory_Insert]
        public bool Accessory_Insert(DTO.AccesoryDTO acc)
        {
            return dal.Accessory_Insert(acc);
        }
        #endregion

        #region [Accessory_Update]
        public bool Accessory_Update(DTO.AccesoryDTO acc)
        {
            return dal.Accessory_Update(acc);
        }
        #endregion

        #region [Accessory_Delete]
        public bool Accessory_DeleteByID(DTO.AccesoryDTO acc)
        {
            return dal.Accessory_DeleteByID(acc);
        }
        #endregion

    }
}
